home *** CD-ROM | disk | FTP | other *** search
- /*
-
- FinalTable v0.2a
- (C)1996 SceptreSoft
-
- This is Shareware! If you find this program useful,
- PLEASE pay the fee and receive the full version.
-
- See AmigaGuide for futher details...
-
- */
-
- Options Results
- Status Page
- PaNum = Result
- Status View
- VSize = Result
- Status ScrollPos; parse var result ScrollX ScrollY
- Status LinePos; parse var result BegLine BegPosition EndLine EndPosition
- If EndLine="" then do
- Showmessage 1 1 '"First select some text for your table!" "(Please read AmigaGuide for help)" "" " OK " "" ""'
- Exit
- End
-
- MoveToLine Endline endposition
- Newparagraph
- Type "End"
- MoveToLine Begline 0
- ShiftDown
- MoveToLine (Endline+1) 3
- ShiftUp
-
- /* Main Actions Part */
- Copy
-
- Address Command "FinalTable:finaltable"
-
- If exists("clips:exp.iff") then do
-
- ScreenToFront
- WinToFront
- Cut
- View 40
-
- InsertImage "CLIPS:Exp.iff"
- ID = RESULT
-
- ObjectToFront 0
- SetObjectParams 0 TEXTFLOW RightVert FILL Transparent LINKED Yes DISPLAY Full
- GetObjectCoords 0; parse var result pg xc yc wid hgt
- width=(wid*0.85)
- height=(hgt1.2)
- RequestText '"Table Width (ruler units)" "How wide would you like your table?" ""'
- If Result="" THEN do
- width=result
- end
- RequestText '"Table Height (ruler units)" "How high would you like your table?" ""'
- If Result="" THEN do
- Height=Result
- end
- SetObjectCoOrds 0 Pg xc yc Width Height
- View VSize
- ReDraw
-
- End
-